<!doctype html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>中检集团-PC端【登录】</title>

    <meta name="renderer" content="webkit|ie-comp|ie-stand">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="shortcut icon" href="/ico.png" type="image/x-icon" />

    <link rel="stylesheet" href="__ROOT__/static/admin/css/font.css">

    <link rel="stylesheet" href="__ROOT__/static/admin/css/xadmin.css">

    <script src="__ROOT__/static/admin/js/jquery-1.9.1.min.js"></script>

    <script src="__ROOT__/static/admin/lib/layui/layui.js" charset="utf-8"></script>

    <script type="text/javascript" src="__ROOT__/static/admin/js/xadmin.js"></script>

</head>

<body class="login-bg">

    <div class="login layui-anim layui-anim-up">

        <div class="message">中检集团-PC端</div>

        <div id="darkbannerwrap"></div>



        <input name="username" placeholder="用户名" id="aname" type="text" lay-verify="required" class="layui-input" >

        <hr class="hr15">

        <input name="apswd" lay-verify="required" placeholder="密码" id="apswd" type="password" class="layui-input">

        <hr class="hr15">

        <input value="登录" id="login_btn" lay-submit lay-filter="login" style="width:100%;" type="submit">

        <hr class="hr20" >



    </div>

    <script type="text/javascript">

        $("#login_btn").click(function () {

            var aname = $('#aname').val();

            var apswd = $('#apswd').val();

            $.ajax({

                type:'post',

                url:"{:url('Login/yanzheng')}",

                data: {username:aname,pswd:apswd},

                success:function (date) {

                    if (date == 2) {

                        layer.msg('账号或密码不正确', function(){});

                    }


                     if (date == 3) {

                        layer.msg('该账号已被禁用', function(){});

                    }

                    if (date == 1) {

                        window.location.href ="{:url('index/index')}";

                    }

                }

            })

        })

    </script>

    <!-- 底部结束 -->

</body>

</html>